package com.yuyou.train.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.user.entity.UserHwPraise;

@Mapper
public interface UserHwPraiseMapper {
    int deleteByPrimaryKey(String id);
    
    int deleteByHwIdAndType(
    		@Param(value="userHwId") String userHwId, 
    		@Param(value="hwType") String hwType,
    		@Param(value="type") String type);

    int insert(UserHwPraise record);

    UserHwPraise selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserHwPraise record);
    
    List<UserHwPraise> findUserHwPraise(UserHwPraise record);
    
    List<String> findUserHwPraiseStr(
    		@Param(value="userHwId") String userHwId, 
    		@Param(value="hwType") String hwType,
    		@Param(value="type") String type);

}